﻿using System.ComponentModel.DataAnnotations;
using Yelper.Web.Validators;

namespace Yelper.Web {

    public class ForgotPasswordModel {

        [Required(ErrorMessage = "This field is required.")]
        [Display(Name = "Username")]
        [StringLength(35, ErrorMessage = "That is too long!")]
        [Username(ErrorMessage = "This is not a valid username")]
        public string Username { get; set; }

        [Required(ErrorMessage = "This field is required.")]
        [Email(ErrorMessage = "Please enter a valid email.")]
        [StringLength(150, ErrorMessage = "That is too long!")]
        [Display(Name = "Email address")]
        public string Email { get; set; }

    }
}
